package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.*;

/**
 * 用户基本信息
 */
@ApiModel(description = "用户基本信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestOverAllServicePageData   {
  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("index")
  private Integer index = null;

  @JsonProperty("pageSize")
  private Integer pageSize = null;

  public ApiRequestOverAllServicePageData customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(required = true, value = "客户号")
  @NotNull


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public ApiRequestOverAllServicePageData index(Integer index) {
    this.index = index;
    return this;
  }

  /**
   * 页码 从1开始
   * @return index
  **/
  @ApiModelProperty(example = "1", value = "页码 从1开始")


  public Integer getIndex() {
    return index;
  }

  public void setIndex(Integer index) {
    this.index = index;
  }

  public ApiRequestOverAllServicePageData pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * 每页大小
   * @return pageSize
  **/
  @ApiModelProperty(example = "20", value = "每页大小")


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestOverAllServicePageData apiRequestOverAllServicePageData = (ApiRequestOverAllServicePageData) o;
    return Objects.equals(this.customerId, apiRequestOverAllServicePageData.customerId) &&
        Objects.equals(this.index, apiRequestOverAllServicePageData.index) &&
        Objects.equals(this.pageSize, apiRequestOverAllServicePageData.pageSize);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerId, index, pageSize);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestOverAllServicePageData {\n");
    
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    index: ").append(toIndentedString(index)).append("\n");
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

